<?php 
defined('IN_TS') or die('Access Denied.');

if($TS_USER['isadmin']==0){
	tsNotice('您没有操作权限', $js);
}

include 'userinfo.php';

$page = isset($_GET['page']) ? intval($_GET['page']) : '1';
$groupid = $_GET['groupid'];
$type = $_GET['type'];
$url = tsUrl('user','comment',array('id'=>$strUser['userid'],'page'=>''));
$lstart = $page*15-15;

$arrComments = $new['user']->findAll('user_comment',array(
	'userid'=>$strUser['userid'],
),'addtime desc',null,$lstart.',15');

foreach($arrComments as $key=>$item){
	$arrComment[] = $item;
	$arrComment[$key]['author']=$new['user']->getOneUser($item['authorid']);
	$arrComment[$key]['content'] = tsDecode($item['content']);
}

$commentNum = $new['user']->findCount('user_comment',array(
	'userid'=>$strUser['userid'],
));

$pageUrl = pagination($commentNum, 15, $page, $url);

$title = '对'.$strUser['username'].'的标注';

//SEO
$sitekey = '';
$sitedesc = '';



include template('comment');